//
//  DanceMusic.h
//  gong
//
//  Created by echo on 14-3-4.
//  Copyright (c) 2014年 echo. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum
{
    TwoQuartersShot = 2,
    ThreeQuarterShot,
    FourQuarterShot
} BeatType;

@interface DanceMusic : NSObject

@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) NSTimeInterval duration;
@property (nonatomic, assign) float bpm;
@property (nonatomic, assign) BeatType beatType;
@property (nonatomic, assign) NSTimeInterval checkTimeSpan;
@property (nonatomic, assign) NSTimeInterval checkTimeSpan1;

@property (nonatomic, strong) NSMutableArray *strongBeatPositionArray;
@property (nonatomic, strong) NSMutableArray *weakBeatPositonArray;
@property (nonatomic, strong) NSMutableArray *secondStrongBeatPositionArray;
@property (nonatomic, strong) NSMutableArray *secondWeakBeatPositonArray;

- (void)calculateBeatPostions;
- (NSInteger)evalue:(NSTimeInterval)touchPosition;
- (NSInteger)getScore;
//- (void)drawStandardBeat:(StandardBeatView*)drawCanvas;

@end
